/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.rakev.matcher.builder;

import ru.rakev.matcher.Matcher;
import ru.rakev.producer.builder.CompositeProducerBuilder;

/**
 *
 * @author Rakev
 */
public class StringMatcherBuilder<F, C extends String> extends ObjectMatcherBuilder<F, C> {

    public StringMatcherBuilder(CompositeProducerBuilder<F, C> producerBuilder) {
        super(producerBuilder);
    }

    public Matcher<F> matches(String regex) {
        Matcher<C> regexMatcher = getMatcherFactory().regex(regex);
        return build(regexMatcher);
    }
}
